import request from '@/utils/request'

// 初始化下拉框
export function getdashboardPanelData() {
    return request({
      url: '/api/getdashboardPanelData',
      method: 'get'
    })
}

// 初始化下拉框
export function getMonthSumGrowData(query) {
    return request({
      url: '/api/getMonthSumGrowData?year='+query.year+'&chickenNo='+query.chickenNo,
      method: 'get'
    })
}

// 初始化下拉框
export function getYearChickenHatchData() {
    return request({
      url: '/api/getYearChickenHatchData',
      method: 'get'
    })
}

export function getMonthSalesData(year,month) {
    return request({
      url: '/api/getMonthSalesData?year='+year+'&month='+month,
      method: 'get'
    })
}

// 初始化下拉框
export function getOptionCheckselect() {
    return request({
      url: '/api/optionCheckselect',
      method: 'get'
    })
  }
  export function getChickenData(chickenId) {
    return request({
      url: '/api/getChickenData?chickenId='+chickenId,
      method: 'get'
    })
  }
  